.class final Lcom/greystripe/sdk/ak;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/greystripe/sdk/aj;


# direct methods
.method constructor <init>(Lcom/greystripe/sdk/aj;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iput-object p2, p0, Lcom/greystripe/sdk/ak;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 3

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    new-instance v1, Lcom/greystripe/sdk/y;

    iget-object v2, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-static {v2}, Lcom/greystripe/sdk/aj;->a(Lcom/greystripe/sdk/aj;)Lcom/greystripe/sdk/am;

    move-result-object v2

    invoke-virtual {v2}, Lcom/greystripe/sdk/am;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/greystripe/sdk/y;-><init>(Landroid/content/Context;)V

    iput-object v1, v0, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v0, v0, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->a:Ljava/lang/String;

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/y;->setVideoURI(Landroid/net/Uri;)V

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v0, v0, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/y;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v0, v0, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/y;->a(Lcom/greystripe/sdk/x;)V

    new-instance v0, Landroid/widget/MediaController;

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-static {v1}, Lcom/greystripe/sdk/aj;->a(Lcom/greystripe/sdk/aj;)Lcom/greystripe/sdk/am;

    move-result-object v1

    invoke-virtual {v1}, Lcom/greystripe/sdk/am;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/MediaController;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v1, v1, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    invoke-virtual {v0, v1}, Landroid/widget/MediaController;->setAnchorView(Landroid/view/View;)V

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v1, v1, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    invoke-virtual {v1, v0}, Lcom/greystripe/sdk/y;->setMediaController(Landroid/widget/MediaController;)V

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-static {v0}, Lcom/greystripe/sdk/aj;->a(Lcom/greystripe/sdk/aj;)Lcom/greystripe/sdk/am;

    move-result-object v0

    invoke-virtual {v0}, Lcom/greystripe/sdk/am;->removeAllViews()V

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    invoke-static {v0}, Lcom/greystripe/sdk/aj;->a(Lcom/greystripe/sdk/aj;)Lcom/greystripe/sdk/am;

    move-result-object v0

    iget-object v1, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v1, v1, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    invoke-virtual {v0, v1}, Lcom/greystripe/sdk/am;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/greystripe/sdk/ak;->b:Lcom/greystripe/sdk/aj;

    iget-object v0, v0, Lcom/greystripe/sdk/aj;->a:Lcom/greystripe/sdk/y;

    invoke-virtual {v0}, Lcom/greystripe/sdk/y;->start()V

    return-void
.end method
